<template>
	<view>
		<u-navbar title-color="#333" back-icon-color="#333333" :border-bottom="false" :is-fixed="true"  :title="'标签信息'"></u-navbar>
		<uc-content :loading="loading">
			<view class="list-item">
				<view class="list-bottom">
					<view>标签内容:</view>
					<view>{{content}}</view>
				</view>
			</view>
		</uc-content>
		<!-- <u-mask :show="show">
			<view class="warp">
				<text @tap.stop style="color: #fff;">
					功能加载中...
				</text>
			</view>
		</u-mask> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loading:true,
				type:"0",
				ucId:'',
				content:''
			}
		},
		onLoad(val) {
			console.log(val)
			this.ucId = val.ucId
			this.type = val.type
		},
		onShow() {
			this.getData()
		},
		methods: {
			getData(){
				switch(this.type){
					case '0':
						console.log(this.ucId)
						this.utils.request("/api/admin/positioning/getInPositioningVo", {
							ucId: this.ucId
						}, "post", "app", true).then(res => {
							console.log(res.data)
							this.loading = false
							this.content = res.data.address
						}).catch(error => {
							this.loading = false
							console.log(error)
						})
						break;
					default:
						break;
				}
				//window.native.getScanResult()
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import "../../uview-ui/libs/css/style.components.scss";

	.list-item {
		padding: 20rpx 40rpx;
		background-color: #fff;
		border-bottom: #999999 1px dashed;

		.list-bottom {
			display: flex;
			margin-top: 10rpx;
			font-size: 28rpx;
			justify-content: space-between;
			color: #333;
		}

		.list-center {
			margin-top: 20rpx;
			font-size: 28rpx;
			color: #999999;
		}
	}
</style>
